class Solution:
  def twoSum(self, nums, target):
    """
    :type nums: List[int]
    :type target: int
    :rtype: List[int]
    """
    for i, valI in enumerate(nums):
      left = target - valI
      for j, valJ in enumerate(nums[i + 1:]):
        if valJ == left:
          return [i, i + 1 + j]